package com.basemanage.conf;

import com.basemanage.controller.ImageController;
import com.basemanage.controller.IndexController;
import com.basemanage.controller.app.AppVersionController;
import com.basemanage.controller.sys.DictController;
import com.basemanage.controller.sys.LogController;
import com.basemanage.controller.sys.ResController;
import com.basemanage.controller.sys.RoleController;
import com.basemanage.controller.sys.UserController;
import com.jfinal.config.Routes;


/**
 * 后台管理Routes配置
 */
public class AdminRoutes extends Routes {

	@Override
	public void config() {
		setBaseViewPath("/WEB-INF/view");

		add("/", IndexController.class);
		add("/sys/log", LogController.class, "/sys");
		add("/sys/res", ResController.class, "/sys");
		add("/sys/user", UserController.class, "/sys");
		add("/sys/role", RoleController.class, "/sys");
		add("/dict", DictController.class, "/sys/dict");
		add("/app", AppVersionController.class, "/app");
		add("/login/image", ImageController.class, "/image");
//		add("/test", TestController.class, "/test");
	}

}
